Skip to main content

All Questions

0votes
2answers
132views

How to count all files recursive inside a specific folder programmatically in powershell?

How can I count all files recursive inside a specific folder in a document library by powershell? So he needs to count also the files inside the subfolders recursive.
KEM's user avatar
  • 15
0votes
1answer
374views

Can I use the Copy-PnPFolder to copy local files to SharePoint?

I'm trying to use the command below to copy local files to SharePoint. Copy-PnPFolder -LocalPath "C:\Projects\BS\Banner.zip" -TargetUrl "https://Demo.sharepoint.com/sites/Demo/Documents&...
naijacoder's user avatar
0votes
1answer
369views

Find large files and folders exceeding 400 characters limits

We have a large file server with files and folders that we need to migrate to SharePoint Online. In SharePoint Online, we have a limitation of 400 characters URL limit and a large number of our ...
SmithBZ's user avatar
1vote
1answer
410views

Add-SPOOrgAssetsLibrary : Attempted to perform an unauthorized operation

I need your help. I am trying to create an assets library and always get the following error: Add-SPOOrgAssetsLibrary : Attempted to perform an unauthorized operation. I am already registered as ...
Nicolas's user avatar
0votes
1answer
193views

Get-PnPProperty -ClientObject with "invalid ID"

After I successfully call $f=Get-PnpFile -Url $Url if I invoke Get-PnPProperty -ClientObject $f -Property Versions I get an error that the object ID is invalid. Any clue?
Stéphane BARIZIEN's user avatar
0votes
1answer
283views

SharePoint Online’s Block Download File Policy - Does it involve some user licensing?

I have a requirement where they don't want users to download files. There are 2 options I have been reading about. Using Conditional Access Policy Using a PowerShell command. My question is there ...
naijacoder's user avatar
1vote
1answer
1kviews

How i can get all files recursively without folders using Get-PnPFolderItem from the root folder and its subfolders

I want to get all the files from the root folder and its sub-folders, now when I tried this script: $customerFolderFiles = Get-PnPFolderItem ` -FolderSiteRelativeUrl $serverRelativeUrl ` -...
microsoftdeveloperdesigner's user avatar
0votes
1answer
2kviews

How I can ONLY get the first level folders (main folders) inside document library, seems "Get-PnPFolder -List $Library" retrieve all the sub-folders

I have this script to loop through all site collections >> and all document libraries >> then list the folders in this format "Site Name >> List Name >> Folder Name":...
John John's user avatar
0votes
1answer
328views

Looking for a PowerShell Script to "Display this document library on the Quick Launch?"

We are doing bulk network share drive migrations into SharePoint. The SPO Migration tool automatically creates the document library, but does not automatically add it to the Quick Launch. There does ...
Scott's user avatar
0votes
0answers
87views

Retrieve permissions of only first level folders in a SharePoint online Document Library

We have a request from our auditors to provide a csv file, that contains for each document library in a site, unique permissions applied on only the first level of folders within the document library, ...
Berdj Boyadjian's user avatar
0votes
1answer
382views

Move particular year files from one document library to another using powershell script

I have two document library.in one document library no folders are there.2021-2022,2022-2023 documents are there.One year(date and time) column is there.Using group by i separated documents(2021-2022,...
BHARATHI PAULRAJ's user avatar
1vote
1answer
142views

-ExemptFromBlockDownloadOfNonViewableFiles $true not running on SharePoint online

I am trying to set this value true on my entire tenant for the ClientSideAssets library. I would like to have -ExemptFromBlockDownloadOfNonViewableFiles set to true on entire tenant if possible if not ...
Newb's user avatar
1vote
2answers
793views

PowerShell to determine where a specific column has been used

I am trying to come up with a script to find out in which document libraries under the site collection, a specific column (Company name) has been used. I am using SharePoint online. Is this something ...
Harris's user avatar
1vote
2answers
4kviews

SharePoint find and delete file

A cyber attack generated thousands of files in SharePoint with this name "Read_me_now.htm". In PowerShell with the command Find-PnPFile -Match * read_me_now.htm * I display them. With what ...
Tomato1287's user avatar
0votes
1answer
804views

SharePoint Number Field - Remove Comma Separator

My document library in a SharePoint site has reached threshold limit and because of which I am not able to update number field to remove comma separator. Is there any way either through PowerShell or ...
Priya's user avatar

153050per page
close